Xbasic

SQL::DatabaseSnapshotStore Method

Syntax

L Store ( Connection as SQL::Connection [, CreateTables as L = .t. [, EventScript as C ] ] )

Arguments

ConnectionSQL::Connection

An explicit, open AlphaDAO connection string to the database.

CreateTablesLogical

Optional. Default value is .t.. If .t., tables will be created if they do not already exist. If .f., the operation assumes the tables already exist.

EventScriptCharacter

Optional. A string that contains an Xbasic event script that is executed when an event is triggered during the operation. See DatabaseSnapshot Events for additional information.

Description

Creates tables and stores data contained in the snapshot in the database referenced by the open connection provided. If the parameter CreateTables is set to false, the tables are assumed to exist.

Discussion

Returns true if the function executed successfully and false if an error occurred.

See Also